package com.wuhuiyue.service.impl;

import com.wuhuiyue.entity.Center;
import com.wuhuiyue.mapper.CenterMapper;
import com.wuhuiyue.service.ICenterService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author hy-woo
 * @since 2022-06-14
 */
@Service
public class CenterServiceImpl extends ServiceImpl<CenterMapper, Center> implements ICenterService {

    @Autowired
    CenterMapper centerMapper;

    @Override
    public List<Center> getByType(int type) {
        return centerMapper.getByType(type);
    }

    @Override
    public List<Center> getCenter() {
        return centerMapper.getCenter();
    }
}
